<?php
include_once("../modules/checkA.php");
include_once("../../config.php");
$plate=select_one_line_all_items($table_Prefix."plate","mid = 'task'");


$act = isset($_REQUEST['act']) ? trim($_REQUEST['act']) : '';

if($act == 'check_qr_bind'){ //检查是否已经绑定了
	
	$user_id = isset($_REQUEST['nid']) ? intval($_REQUEST['nid']) : '';

	if($user_id != 0){
		
		$user_info=select_one_line_all_items($table_Prefix."task","nid = '$user_id'");
		
		if($user_info['open_id'] != ''){
			echo 1;
			exit;
		}
	}
	echo 0;
	exit;
}

?>